package dal;

import hist_data.DailyBar;
import hist_data.DailyPair;
import hist_data.MinuteBar;
import iblink.core.Stock;

import java.util.Date;
import java.util.List;

public interface IHistoricalDataAccessor {

	List<Stock> getUnprocessedStocks(Date date);

	List<Stock> getProcessedStocks(Date date);

	void addUpdateStock(Stock stk);

	void saveMinuteBars(Stock stock, List<MinuteBar> dataPoints);

	MinuteBar getLastBar(Stock stock, Date date);

	void saveDailyBar(Stock stock, DailyBar dailyBar);

	void saveDailyPair(DailyPair dailyPair);

	DailyPair getDailyPair(Stock s1, Stock s2, Date d);
	
	List<MinuteBar> getMinuteBars(Stock stock, Date date);

}